package com.tudouji.project.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 附件信息对象 fileinfo
 * 
 * @author tudouji
 * @date 2021-05-12
 */
public class Fileinfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String guid;

    /** 业务关联id */
    @Excel(name = "业务关联id")
    private String linkid;

    /** 文件名 */
    @Excel(name = "文件名")
    private String filename;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String url;

    /** 操作人id */
    @Excel(name = "操作人id")
    private String operatorid;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastupdate;
    private Date createtime;

    /** 附件保存路径 */
    @Excel(name = "附件保存路径")
    private String savepath;

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public void setGuid(String guid)
    {
        this.guid = guid;
    }

    public String getGuid() 
    {
        return guid;
    }
    public void setLinkid(String linkid) 
    {
        this.linkid = linkid;
    }

    public String getLinkid() 
    {
        return linkid;
    }
    public void setFilename(String filename) 
    {
        this.filename = filename;
    }

    public String getFilename() 
    {
        return filename;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setOperatorid(String operatorid) 
    {
        this.operatorid = operatorid;
    }

    public String getOperatorid() 
    {
        return operatorid;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }
    public void setLastupdate(Date lastupdate) 
    {
        this.lastupdate = lastupdate;
    }

    public Date getLastupdate() 
    {
        return lastupdate;
    }
    public void setSavepath(String savepath) 
    {
        this.savepath = savepath;
    }

    public String getSavepath() 
    {
        return savepath;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("guid", getGuid())
            .append("linkid", getLinkid())
            .append("filename", getFilename())
            .append("url", getUrl())
            .append("operatorid", getOperatorid())
            .append("operator", getOperator())
            .append("createtime", getCreatetime())
            .append("lastupdate", getLastupdate())
            .append("savepath", getSavepath())
            .toString();
    }
}
